<?php

namespace Home\Model;
use Think\Model;
class PwdModel extends Model {
	
	protected $tableName = 'user';
	
	protected $_validate = array(
      array('username','require','名字必须写！'), 
	  array('oldpwd','require','密码必须写！'),
	  array('password','require','密码必须写！'), 
     
     
     array('spwd','password','确认密码不正确',0,'confirm'), // 验证确认密码是否和密码一致
	
     
   );
	
	
}
	
	
	



?>